package com.company.oa.document.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 审批记录实体类
 */
@Data
@TableName("doc_approval_record")
public class ApprovalRecord implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 记录ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 公文ID
     */
    private Long documentId;

    /**
     * 审批人ID
     */
    private Long approverId;

    /**
     * 审批人姓名
     */
    private String approverName;

    /**
     * 审批结果：1-通过，2-驳回
     */
    private Integer result;

    /**
     * 审批意见
     */
    private String comment;

    /**
     * 审批节点
     */
    private Integer node;

    /**
     * 审批时间
     */
    private LocalDateTime approvalTime;
} 